package com.cj.mobile.iabp.mvp.model.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 包名： com.zqw.mobile.recycling.model
 * 对象名： GoodsModel
 * 描述：商品型号
 * 作者： wly
 * 邮箱：wangliyang206@163.com
 * 创建日期： 2017/4/26 15:07
 */

public class GoodsModel {
    /**
     * 修改价格
     */
    public GoodsModel(String gId, String model, double weight, double unitPrice, String catId, String catName, double num, double amount) {
        this.gId = gId;
        this.model = model;
        this.weight = weight;
        this.unitPrice = unitPrice;
        this.catId = catId;
        this.catName = catName;
        this.num = num;
        this.amount = amount;
    }

    /**
     * 订单详情
     */
    public GoodsModel(String gId, String model, double weight, double unitPrice, String catId, String catName, double num) {
        this.gId = gId;
        this.model = model;
        this.weight = weight;
        this.unitPrice = unitPrice;
        this.catId = catId;
        this.catName = catName;
        this.num = num;
    }

    public GoodsModel() {
    }

    /*商品id*/
    private String gId = "";
    private String gid = "";
    /*型号*/
    private String model = "";
    /*总重量*/
    private double weight = 0.00;
    /*单品重量*/
    private double unitWeight = 0.00;
    /*单价*/
    private double unitPrice = 0.00;
    // 数量
    private double num;
    // 品类id
    private String catId = "";
    // 品类名称
    private String catName = "";
    // 金额
    private double amount;
    // 单位
    private String unit;
    // 唯一ID
    private String id;

    // 扣减合计
    private double totalAmount;

    // 扣减
    private List<DeductionInfo> deductProductList = new ArrayList<>();

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public List<DeductionInfo> getDeductProductList() {
        return deductProductList;
    }

    public void setDeductProductList(List<DeductionInfo> deductProductList) {
        this.deductProductList = deductProductList;
    }

    public double getUnitWeight() {
        return unitWeight;
    }

    public void setUnitWeight(double unitWeight) {
        this.unitWeight = unitWeight;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getgId() {
        return gId;
    }

    public void setgId(String gId) {
        this.gId = gId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
